package horncomb.bpm.process.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;

import horncomb.bpm.process.core.entity.NestedTokenEntity;

/**
 * @author Daniel
 */
@Entity
@MappedSuperclass
public class DefaultNestedTokenEntity extends DefaultTokenEntity implements
		NestedTokenEntity {
	private static final long serialVersionUID = 8173617741332962540L;
	private String parentId;

	public String getType() {
		return "NT";
	}

	/**
	 * @return the parentId
	 */
	@Column(name = "PARENT_")
	public String getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
